package com.zuipin.enums;

import java.util.ArrayList;
import java.util.List;

import com.zuipin.vo.EnumVo;

/**
 * 发票抬头
 * 
 * @ClassName: InvoiceTitle
 * @author wuyicheng
 * @time 2017年3月24日下午4:52:28
 */
public enum InvoiceTitle {
	
	PERSONAL(1, "个人"), //
	COMPANY(2, "公司");
	
	private Integer	key;
	private String	name;
	
	InvoiceTitle(Integer i, String str) {
		this.key = i;
		this.name = str;
	}
	
	public Integer getKey() {
		return key;
	}
	
	public void setKey(Integer key) {
		this.key = key;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * 获取发票抬头
	 * @return
	 */
	public static List<EnumVo> findInvoiceTitle() {
		List<EnumVo> list = new ArrayList<>();
		list.add(new EnumVo(InvoiceTitle.PERSONAL.name, InvoiceTitle.PERSONAL.toString(), null));
		list.add(new EnumVo(InvoiceTitle.COMPANY.name, InvoiceTitle.COMPANY.toString(), null));
		return list;
	}
}
